<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="../common/jspcommon.jsp" %>
<%-- 以下是同步登录和退出爽网的代码 --%>
<c:if test="${ucsynlogout !=null}">
${ucsynlogout }
</c:if>
<c:if test="${ucsynlogin !=null}">
${ucsynlogin }
</c:if>
<%
request.getSession(true).removeAttribute("ucsynlogout");
request.getSession(true).removeAttribute("ucsynlogin");
%>
<%-- 以上是同步登录和退出爽网的代码 --%>
<%
	String menuType = "";
	String uri = request.getRequestURI();
	if(uri!= null && uri.indexOf("views/v1/index/index.jsp") != -1){
		menuType = "index";
	}else if(uri!= null && (uri.indexOf("views/v1/hotel/hotels.jsp") != -1)){
		menuType = "hotel";
	}else if(uri!= null && (uri.indexOf("views/v1/scenic/scenics.jsp") != -1)){
		menuType = "scenic";
	}else if(uri!= null && (uri.indexOf("views/v1/ticket/ticketSale.jsp") != -1)){
		menuType = "ticket";
	}else if(uri!= null && (uri.indexOf("views/v1/product/food.jsp") != -1)){
		menuType = "food";
	}else if(uri!= null && (uri.indexOf("views/v1/scenic/photo.jsp") != -1)){
		menuType = "photo";
	}else if(uri!= null && (uri.indexOf("views/v1/trip/trip.jsp") != -1)){
		menuType = "trip";
	}else if(uri!= null && (uri.indexOf("views/v1/trip/tripv.jsp") != -1)){
		menuType = "trip";
	}else if(uri!= null && (uri.indexOf("views/v1/product/productTravel.jsp") != -1)){
		menuType = "travel";
	}else if(uri!= null && (uri.indexOf("views/v1/product/productLine.jsp") != -1)){
		menuType = "line";
	}else if(uri!= null && (uri.indexOf("views/v1/index/review.jsp") != -1)){
		menuType = "review";
	}else if(uri!= null && (uri.indexOf("views/v1/scenic/exhibition.jsp") != -1)){
		menuType = "exhibition";
	}
 	request.setAttribute("menuType",menuType);
%>
	
	<div class="w100p header">
    	<div class="w980 mg">
        	<div class="secmenu clearfix">
            	<p class="fl">
            		<c:if test="${onlineUser.member==null }">您好，欢迎来到爽客<a href="/login.htm" class="login">登录</a>|<a href="/register.htm">注册</a></c:if>
            		<c:if test="${onlineUser.member!=null }">您好， <a href="/member.htm" class="login">${onlineUser.member.nickname }</a><a href="/logout.htm">退出</a></c:if>
            	</p>
                <ul class="fr">
                	<!-- <li><a href="#">申请爽卡</a></li> -->
                    <c:if test="${onlineUser.member!=null }"><li><a href="myOrder.htm">我的订单</a></li></c:if>
                    <c:if test="${onlineUser.member!=null }"><li class="last"><a href="messages.htm">站内信</a></li></c:if>
                    <!-- <li><a href="#">购物指南</a></li>
                    <li class="last"><a href="#">点评有奖</a></li> -->
                </ul>
            </div>
            <div class="logo_box clearfix">
            	<a href="/"><img src="../../images/common/logo_new.gif" class="fl block" /></a>
                <div class="ordernums">
                	<span>订购电话 9:00 - 17:30</span>
                </div>
                <div class="fr mr10 mt5">
                	<a href="pic/download/coolsk.ipa" target="_blank" class="fl mr10"><img src="/images/smallpic/apple.gif" class="block" /></a>
                    <a href="pic/download/coolsk.apk" target="_blank" class="fl"><img src="/images/smallpic/andriod.gif" class="block" /></a>
                </div>
            </div>
        </div>
        
		<div class="w100p menu_box">
        	<div class="w980 mg">
            	<ul class="mainmenu">
                	<li <c:if test="${menuType=='index' }">class="current"</c:if>><a href="/">首页</a></li>
                    <li <c:if test="${menuType=='ticket'||chType=='ticket' }">class="current"</c:if>><a href="ticketSale.htm">打折门票</a></li>
                    <li <c:if test="${menuType=='hotel' ||chType=='hotel' }">class="current"</c:if>><a href="hotels.htm">特惠酒店</a></li>
                    <li <c:if test="${menuType=='food' }">class="current"</c:if>><a href="food.htm">特价美食</a></li>
                    <li <c:if test="${menuType=='travel'||chType=='travel' }">class="current"</c:if>><a href="ptravel.htm">旅游商品</a></li>
                    <li <c:if test="${menuType=='line' ||chType=='line'}">class="current"</c:if>><a href="pline.htm">线路推荐</a></li>
                    <%--<li><a href="#">旅游地产</a></li> --%>
                    <li <c:if test="${menuType=='exhibition'||chType=='exhibition' }">class="current"</c:if>><a href="exhibition.htm">展会博览</a></li>
                    <li <c:if test="${menuType=='scenic' }">class="current"</c:if>><a href="scenics.htm">景区大全</a></li>
                    <%--<li><a href="#">分类信息</a></li>--%>
                    <li <c:if test="${menuType=='photo' }">class="current"</c:if>><a href="photo.htm">摄天下</a></li>
                    <li><a href="/#weiboCoolsk">微贵州</a></li>
                    <li <c:if test="${menuType=='trip' }">class="current"</c:if>><a href="trip.htm">我的行程</a></li>
                    <li <c:if test="${menuType=='review' }">class="current"</c:if>><a href="review.htm">点评</a></li>
                    <li><a href="http://www.coolgy.com/forum.php">社区</a></li>
                </ul>
            </div>
        </div> 
       
    </div>
  